package cn.classTest.mall.mapper;

import cn.classTest.mall.domain.Employee;
import cn.classTest.mall.query.EmployeeQueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmployeeMapper {
    List<Employee> selectAll();
    List<Employee> queryForPage(EmployeeQueryObject qo);
   
    void update(Employee employee);

    void save(Employee employee);

    void deleteRoleWhereId(Long id);

    void insertEmpAndRole(@Param("empId") Long empId, @Param("roleIds") Long[] roleIds);

    void delete(Long id);

    Employee selectOne(Long id);

    int queryForCount(EmployeeQueryObject qo);

    Employee selectByUserNameAndPassword(@Param("username") String username, @Param("password") String password);

}